export default defineNuxtConfig({
  compatibilityDate: '2024-04-03',
  devtools: { enabled: true },
  modules: [
    "@nuxtjs/i18n",
    '@nuxt/image-edge',
    '@element-plus/nuxt'
  ],
  css: ['~/assets/styles/tailwind.scss'],
  vite: {
    css: {
      preprocessorOptions: {
        scss: {
          additionalData: `@use "@/assets/styles/setup.scss" as element;`,
        },
      },
    },
  },
  elementPlus: {
    importStyle: 'scss',
    themes: ['dark']
  },
  postcss: {
    plugins: {
      tailwindcss: {},
      autoprefixer: {},
    },
  },
  i18n: {
    vueI18n: './i18n.config.ts' 
  }
})
